home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Day Cry
/
Day Cry CD.bin
/
oh_towns
/
taropyon
/
silib
/
silib.lzh
/
INC
/
SIFS.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-05-07
|
3KB
|
79 lines
/*************************************************************************
* "sifs.h"
*-------------------------------------------------------------------------
* File library
* Copyright (c) 1993, TaroPYON
*************************************************************************/
#ifndef _SIFS_H
#define _SIFS_H
#ifndef _SITYPES_H
# include <sitypes.h>
#endif
#ifndef FAR
# define FAR _far
#endif
typedef struct
{
unsigned char dmy[21];
unsigned char att;
unsigned short int time,date;
unsigned long size;
char name[13];
} FSDTA_T;
extern char FsTmpFn[]; /* temporary filename buffer */
#ifndef FS_ISDELIM
# define FS_ISDELIM(_ch) ((_ch) == FsPathDelim || (_ch) == FsDosDelim)
#endif
extern int FsDosDelim;
extern int FsPathDelim;
extern char *FS_cnvFn( char *fn, CONST char *srcFn );
extern char *FS_dosFn( char *dosFn, CONST char *srcFn );
extern int FS_chkErr(void);
extern int FS_isdrv(int drv);
extern int FS_chdrv(int drv);
extern int FS_getdrv(void);
extern int FS_chdir(CONST char *dir);
extern int FS_getdir(char *dir);
extern int FS_chdir2(CONST char *dir);
extern int FS_getdir2(char *dir);
extern char *FS_pushDir(void);
extern void FS_popDir( char *dir );
extern int FS_getDskFree( int drv, unsigned long *totalFree, unsigned long *writeFree);
extern int FS_getDskVolume( int drv, char *vol );
extern FSDTA_T *FS_getSysDta(void);
extern FAR FSDTA_T *FS_getDta(void);
extern int FS_setDta( FAR FSDTA_T *dta );
extern int FS_getFinf( CONST char *pathname, int att, FSDTA_T *fbuf );
#define FSISFILE_ERR (-1)
#define FSISFILE_FILE (1)
#define FSISFILE_DIR (2)
extern int FS_isFile( CONST char *pathname );
extern char *FS_strlwr( char *s );
extern char *FS_strupr( char *s );
extern int FS_cmpfn( CONST char *fn1, CONST char *fn2 );
extern char *FS_getFnam( char *fn, CONST char *pn );
extern char *FS_getDnam( char *dnam, CONST char *srcFn );
extern char *FS_getPnam( char *pnam, CONST char *srcFn );
extern char *FS_getFn( char *fn, CONST char *fnam );
extern char *FS_getSn( char *sn, CONST char *fnam );
extern char *FS_getFullPn( char *pn, CONST char *fn);
extern char *FS_appendSn( char *fnam, CONST char *srcFn, CONST char *sub );
extern char *FS_changeSn( char *fnam, CONST char *srcFn, CONST char *sub );
extern int FS_makeRelPath( char *path, CONST char *fn, CONST char *bdir );
extern int FS_wildSet( CONST char *s);
extern int FS_wildMatch( CONST char *s);
extern void FS_wildFree(void);
extern int FS_searchWc( CONST char *wild );
#endif